/**
 * 物料入库记录表 api 封装
 *
 * @Author:    yurui
 * @Date:      2024-07-30 16:00:02
 * @Copyright  jz
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const inventoryOperationsApi = {

  /**
   * 分页查询  @author  yurui
   */
  queryPage : (param) => {
    return postRequest('/inventoryOperations/queryPage', param);
  },

  /**
   * 增加  @author  yurui
   */
  add: (param) => {
      return postRequest('/inventoryOperations/add', param);
  },

  /**
   * 修改  @author  yurui
   */
  update: (param) => {
      return postRequest('/inventoryOperations/update', param);
  },


  /**
   * 删除  @author  yurui
   */
  delete: (id) => {
      return getRequest(`/inventoryOperations/delete/${id}`);
  },

  /**
   * 批量删除  @author  yurui
   */
  batchDelete: (idList) => {
      return postRequest('/inventoryOperations/batchDelete', idList);
  },
  // 用料项目(项目名称)
  materialProject: () => {
    return postRequest('/project/queryAll')
  }
};
